/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.asu.entity;

import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Author: Sergey42
 * Date: 30.11.13 11:49
 */
@Table(name = "EXT_COMMISSION_INFO")
@Entity(name = "ext$CommissionInfo")
public class CommissionInfo extends StandardEntity {

    private static final long serialVersionUID = 8142248407214376867L;

    @ManyToOne
    @JoinColumn(name = "COMMISSION_ID")
    protected Commission commission;

    @ManyToOne
    @JoinColumn(name = "SPECIALITY_ID")
    protected Speciality speciality;

    @ManyToOne
    @JoinColumn(name = "CHIEF_COMMAND_ID")
    protected CommissionChiefCommand commissionChiefCommand;

    @ManyToOne
    @JoinColumn(name = "COMPOSITION_COMMAND_ID")
    protected CommissionCompositionCommand commissionCompositionCommand;

    public Commission getCommission() {
        return commission;
    }

    public void setCommission(Commission commission) {
        this.commission = commission;
    }

    public Speciality getSpeciality() {
        return speciality;
    }

    public void setSpeciality(Speciality speciality) {
        this.speciality = speciality;
    }

    public CommissionChiefCommand getCommissionChiefCommand() {
        return commissionChiefCommand;
    }

    public void setCommissionChiefCommand(CommissionChiefCommand commissionChiefCommand) {
        this.commissionChiefCommand = commissionChiefCommand;
    }

    public CommissionCompositionCommand getCommissionCompositionCommand() {
        return commissionCompositionCommand;
    }

    public void setCommissionCompositionCommand(CommissionCompositionCommand commissionCompositionCommand) {
        this.commissionCompositionCommand = commissionCompositionCommand;
    }
}
